/*
 * @Author: your name
 * @Date: 2019-11-27 09:05:29
 * @LastEditTime: 2019-12-03 15:49:31
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \web\avue-cli\src\api\equipment\device\management.js
 */
import request from '@/router/axios';
import qs from 'qs';
/**
 * @description: 故障报停条件分页查询
 * @param {object}
 * @return:promise
 */
export const getTroubleList = (data = {}) => request({
  url: '/trouble/v1/pageQuery',
  method: 'post',
  data: qs.stringify(data),
})
/**
 * @description: 故障报停根据主键删除
 * @param {object}
 * @return:promise
 */
export const deleteTroubleID = (data = {}) => request({
  url: '/trouble/v1/getById',
  method: 'post',
  data: qs.stringify(data),
})
/**
 * @description: 故障报id查询
 * @param {object}
 * @return:promise
 */
export const getTroubleID = (data = {}) => request({
  url: '/trouble/v1/findById',
  method: 'post',
  data: qs.stringify(data),
})
/**
 * @description: 故障报id修改
 * @param {object}
 * @return:promise
 */
export const updateTroubleID = (data = {}) => request({
  url: '/trouble/v1/update',
  method: 'post',
  data: qs.stringify(data),
})